package com.team10.hotel.service;

import com.team10.hotel.domain.Permission;

import java.util.List;

public interface PermissionService {
    List<Permission> findAll();

    List<Permission> findByRoleId(Integer roleId);

    Permission findByPrimaryKey(Integer permissionId);

    int saveOrUpdate(Permission permission);

    int deletePermission(Integer permissionId);

    List<Permission> findAllByUserId(String userId);

    List<Permission> findAllByUserIdAndParentId(String userId,Integer parentPermissionId);

    List<Permission> findAllNoParentByUserId(String userId);
}
